import { ref } from 'vue'
import type { MarketViewData } from '../types'

export function useMarketViewData() {
  const marketViewData = ref<MarketViewData[]>([
    {
      assetClass: '固收',
      subAsset: '利率',
      strategy: '短期受"股债跷跷板"效应影响,维持震荡偏弱运行,关注央行会否启动公开市场国债买卖操作。',
      cautious: false,
      neutral: true,
      optimistic: false,
      marginalChange: 'stable',
      recommendedTarget: '政金债券ETF',
      code: '511520.SH'
    },
    {
      assetClass: '固收',
      subAsset: '信用',
      strategy: '短期信用利差压缩至历史低位,重点关注短期信用债,可适当信用下沉。',
      cautious: false,
      neutral: true,
      optimistic: false,
      marginalChange: 'stable',
      recommendedTarget: '国债ETF',
      code: '511520.SH'
    },
    {
      assetClass: '固收',
      subAsset: '转债',
      strategy: '预计在股性支撑下震荡上行,短期估值较高,积极跟随权益波段交易。',
      cautious: false,
      neutral: false,
      optimistic: true,
      marginalChange: 'up',
      recommendedTarget: '城投债ETF',
      code: '511520.SH'
    },
    {
      assetClass: '固收',
      subAsset: '美元债',
      strategy: '建议关注中短端美债短期受益稳定币扩张。',
      cautious: false,
      neutral: true,
      optimistic: false,
      marginalChange: 'down',
      recommendedTarget: '美元债LOF',
      code: '511520.SH'
    }
  ])

  return {
    marketViewData
  }
}
